package grape.workflow.rest.comment.mapper;

import grape.workflow.rest.comment.form.CommentListPageForm;
import grape.workflow.rest.comment.vo.CommentVo;
import grape.workflow.service.comment.dto.CommentDto;
import grape.workflow.service.comment.query.CommentQuery;
import org.flowable.engine.impl.persistence.entity.CommentEntityImpl;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

/**
 * Created by yangwei
 * Created at 2020/6/16 20:10
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface CommentWebMapper {

    CommentVo dtoToVo(CommentDto dto);
    CommentEntityImpl map(CommentDto dto);

    CommentQuery map(CommentListPageForm form);

}
